package com.openx.amqp;

import java.io.Serializable;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "spring.amqp")
public class XRabbitProperties implements Serializable{
    private static final long serialVersionUID = 1617431075746355939L;
    private String name;
    private String host;
    private int port;
    private String username;
    private transient String password;
    private String virtualHost = "/";
    private boolean publisherConfirms = false;
    private String queues;
    private String exchanges;
    private String routes;
    private String rpcListenerQueues;
    private boolean isDeclare;
    public XRabbitProperties(){}
    
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getQueues() {
        return queues;
    }
    public void setQueues(String queues) {
        this.queues = queues;
    }
    public String getExchanges() {
        return exchanges;
    }
    public void setExchanges(String exchanges) {
        this.exchanges = exchanges;
    }
    public String getRoutes() {
        return routes;
    }
    public void setRoutes(String routes) {
        this.routes = routes;
    }
    public String getHost() {
        return host;
    }
    public void setHost(String host) {
        this.host = host;
    }
    public int getPort() {
        return port;
    }
    public void setPort(int port) {
        this.port = port;
    }
    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public String getVirtualHost() {
        return virtualHost;
    }
    public void setVirtualHost(String virtualHost) {
        this.virtualHost = virtualHost;
    }
    public boolean isPublisherConfirms() {
        return publisherConfirms;
    }
    public boolean getPublisherConfirms() {
        return publisherConfirms;
    }
    public void setPublisherConfirms(boolean publisherConfirms) {
        this.publisherConfirms = publisherConfirms;
    }

    public String getRpcListenerQueues() {
        return rpcListenerQueues;
    }

    public void setRpcListenerQueues(String rpcListenerQueues) {
        this.rpcListenerQueues = rpcListenerQueues;
    }

    public boolean isDeclare() {
        return isDeclare;
    }

    public void setIsDeclare(boolean declare) {
        isDeclare = declare;
    }
}
